package com.educhains.module.community.service.impl;


import com.educhains.module.community.persist.mybatis.CommunityMapper;
import com.educhains.module.community.service.CommunityService;
import com.educhains.module.community.vo.Community;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CommunityServiceImpl  implements CommunityService{

    @Autowired
    private CommunityMapper communityMapper = null;

    public List<Community> selectCommunityList() {
        return communityMapper.selectCommunityList();
    }

    public int updateAnnounceByName(String communityName, String communityAnnouncement) {
        return communityMapper.updateAnnounceByName(communityName, communityAnnouncement);
    }

}
